﻿using System;
using System.Collections.Generic;
using System.Text;
using YouHP.Model;

namespace YouHP.IDAL
{
    public interface IPrescription
    {
        #region 药方的查询、添加、更新和删除

        PrescriptionInfo GetPrescriptionInfo(int pid);

        List<PrescriptionInfo> GetPrescriptionList(string condStr);

        int AddPrescription(PrescriptionInfo info);
        bool UpdatePrescription(PrescriptionInfo info);
        bool DeletePrescription(int pid);

        #endregion

        #region 药方列表及其搜索

        // 按条件检索药方列表
        List<PrescriptionInfo> GetPrescriptionList(int pageSize, int pageIndex, string condStr, out int count);
        List<PrescriptionInfo> GetPrescriptionList(int pageSize, int pageIndex, string condStr, string orderStr, out int count);

        #endregion

        List<DiseasePrescriptionStat> GetDiseasePrescriptionStat(int count);
    }
}
